<?php if(!defined('SABLOG_ROOT')) exit('Access Denied');?>
<script type="text/javascript" src="$options[url]include/jscript/login.js"></script>
<div class="loginBox">
	<h3 class="title">Login</h3>
	<form action="" method="post" onsubmit="return checkloginform();">
	<input type="hidden" name="action" value="dologin" />
	<input type="hidden" name="formhash" value="$formhash" />
	<input type="hidden" name="referer" value="$referer" />
	<div class="formbox">
		<p>
			<label for="username">Userame OR E-mail:<br />
				<input name="username" id="username" type="text" size="30" tabindex="1" maxlength="40" value="" class="formfield" />
			</label>
		</p>
		<p>
			<label for="password">Password:<br />
				<input name="password" id="password" type="password" size="30" tabindex="2" maxlength="50" value="" class="formfield" />
			</label>
		</p>
		<!--{if $options['seccode']}-->
			<p>
				<label for="clientcode">Seccode:<br />
					<input onfocus="updateseccode();this.onfocus = null;" name="clientcode" id="clientcode" value="" tabindex="3" class="formfield" size="6" maxlength="6" />
					<span id="seccodeimage"></span>
				</label>
			</p>
		<!--{/if}-->
		<p>
			<button type="submit">Submit</button>
		</p>
	</div>
	</form>
</div>